<?php
namespace app\app\request;

use app\common\request\Login as ParentRequest;

class Version extends ParentRequest {
	public function new() {
		$enforce = $this->get_enforce();
		return compact('enforce');
	}

	public function get_enforce() {
		$enforce = $this->post('enforce');
		$options = loader('app')->loadEnum('Enforce')->get_options();
		if(!isset($options[$enforce])) {
			$enforce = '';
		}
		return $enforce;
	}

	
}
